home *** CD-ROM | disk | FTP | other *** search
/ Interplay's Learn to Program Basic (Review Copy) / Learn to Program Basic Review Copy (Interplay)(June 23, 1998).ISO / pc / ltpbasic / exercise / backward.bas < prev    next >
Encoding:
BASIC Source File  |  1998-04-07  |  171 b   |  12 lines

  1. cls
  2. print "Please enter your name: ";
  3. input name$
  4. print
  5. print "Your name spelled backwards is: "
  6. print
  7.  
  8. for X = len(name$) to 1 step -1
  9. print mid$(name$,X,1);
  10. next X
  11. end